package com.dahua.messagesyncbj.mapper;

import com.dahua.messagesyncbj.entity.Fault;
import com.dahua.messagesyncbj.criteria.FaultQueryCriteria;
import com.dahua.messagesyncbj.pojo.EquipmentInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FaultMapper {
    void insertFaultList(@Param("faultList") List<Fault> faultList);

    void fixFault(@Param("fault") Fault fault);

    List<Fault> listFaults(@Param("faultQueryCriteria") FaultQueryCriteria faultQueryCriteria);

    void modifyFaultInfo(@Param("info") EquipmentInfo info);

    void deleteFaultInfo(@Param("info") EquipmentInfo info);
}
